<?php 
if(!isset($activities['organizer']) || empty($activities['organizer'])){
	echo $this->lang->line('organizer_empty');
}

?>
<?php foreach($activities['organizer'] as $key=>$val): ?>
<div class="activity_block">
	<div class="activity_mid_thumbnail">
		<?php 
			$val['upload_image'] = json_decode($val['upload_image']);
			echo isset($val['upload_image'][0])?'<img width="180" height="180" src="'.$this->config->item('image_uploader_original', 'layout').$user_id.'/'.$val['upload_image'][0].'">':'<img src="'.$this->config->item('image_public', 'layout').'empty-image.png" width="180" height="180" />';
		?>
	</div>
	<div class="activity_info">
		<div class="info_head">
			<div class="user_image"><img src="<?php echo $this->config->item('image_public', 'layout'); ?>noavatar.gif" width="80" height="80" /></div>
			<div class="activity_short_desc">
				<p class="title"><span class="draft_title"><?php echo (($val['status']==0)?$this->lang->line('draft'):''); ?></span><a href="/activity/index/<?php echo $val['activity_id']?>"><?php echo $val['activity_title']?></a></p>
				<p><?php echo $val['activity_location']?>/<?php echo $val['activity_category']?></p>
				<p>5分</p>
			</div>
			<div class="activity_action">
				<p>
					<input type="button" value="修改" onclick="location.href='<?php echo $this->config->item('activity_modify_url', 'layout').$val['activity_id']; ?>';return false;" />
				</p>
				<p><?php echo $val['activity_price']?>元</p>
			</div>
		</div>
		<div class="info_body">
			<p><?php echo strip_tags($val['desc']) ?></p>
		</div>
	</div>
</div>
<?php endforeach; ?>